package com.scu.hotelsystem.util;

public class PageInfo {
    private int page;
    private int limit;

    public PageInfo() {
    }

    public int getPage() {
        return page;
    }

    public void setPage(int page) {
        this.page = page;
    }

    public int getLimit() {
        return limit;
    }

    public void setLimit(int limit) {
        this.limit = limit;
    }

    public int index(){
        return (this.page - 1) * this.limit;
    }

    public int limit(){
        return this.limit;
    }
}
